from django.db import models


# Create your models here.
class Student(models.Model):
    SEX_CHOICES = [
        ('F', 'female女'),
        ('M', 'male男'),
    ]

    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=10, unique=True)
    sex = models.CharField(max_length=1, choices=SEX_CHOICES)
    classno = models.CharField(max_length=10, default="2107A", null=False)


# 书
# class Book(models.Model):
#     class Meta:
#         db_table = "book"
#
#     id = models.AutoField(primary_key=True)
#     name = models.CharField(max_length=20, null=False)
#     price = models.DecimalField(max_digits=4, decimal_places=2)
#     isbn_no = models.CharField(max_length=1)

    # autor =
